package com.example.zaq.model;

//20210520 zaq  引入

import lombok.Data;

import java.io.Serializable;

/**
 * asp_group
 * @author 
 */
@Data
public class AspGroup implements Serializable {
    private Integer count;

    private boolean update;
    private boolean select;

    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;

    /**
     * 组别表
     */
    private Integer gId;

    /**
     * 组别名称
     */
    private String name;

    /**
     * 账簿ID
     */
    private Integer bId;

    /**
     * 账簿类型ID
     */
    private Integer kGId;

    /**
     * 用户ID
     */
    private Integer uId;

    /**
     * 删除标志；1|删除；0|未删除
     */
    private Boolean delete;

    private static final long serialVersionUID = 1L;

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public boolean isUpdate() {
        return update;
    }

    public void setUpdate(boolean update) {
        this.update = update;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getgId() {
        return gId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public void setgId(Integer gId) {
        this.gId = gId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getbId() {
        return bId;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }

    public Integer getkGId() {
        return kGId;
    }

    public void setkGId(Integer kGId) {
        this.kGId = kGId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspGroup other = (AspGroup) that;
        return (this.getgId() == null ? other.getgId() == null : this.getgId().equals(other.getgId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getbId() == null ? other.getbId() == null : this.getbId().equals(other.getbId()))
            && (this.getkGId() == null ? other.getkGId() == null : this.getkGId().equals(other.getkGId()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getgId() == null) ? 0 : getgId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getbId() == null) ? 0 : getbId().hashCode());
        result = prime * result + ((getkGId() == null) ? 0 : getkGId().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AspGroup{" +
                "count=" + count +
                ", update=" + update +
                ", select=" + select +
                ", note='" + note + '\'' +
                ", code=" + code +
                ", gId=" + gId +
                ", name='" + name + '\'' +
                ", bId=" + bId +
                ", kGId=" + kGId +
                ", uId=" + uId +
                ", delete=" + delete +
                '}';
    }
}